package com.huawei.cloud.fc.controller;

import com.huawei.cloud.fc.pojo.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by cwx183898 on 2017/5/23.
 */
//FeignClient:里边填的为服务名称
//
@FeignClient("user-services")
public interface UserInterface {
    @RequestMapping(value = "/user/get", method = RequestMethod.POST)
    public User get(@RequestParam(value = "username") String username, @RequestParam(value = "String") String password);
}
